
Investing in Angular testing reduces bugs as projects grow and complex logic emerges; tests catch cases, guide new developers, and keep code stable even as changes accumulate.
Access the downloadable source code archive for each video, set up the project with npm install, and compare your implementation against the lesson code to test results.
Set up a new Angular project with Node.js, npm start, and version switching via npx -p, then clean defaults to router outlet and standalone components in Angular 17.
- What is unit testing
- Setting up Jest
- Testing utilities and helpers
- Testing Angular service
- Testing RxJS
- Testi HTTP
Install jest, jest preset angular, and typescript support to configure angular tests. Create jest.config.js and setup-jest, then run tests with npm test and explore watch and ci options.
Learn to test utility methods inside Angular by isolating pure TypeScript functions in shared utils, using Jest, describe blocks, and watch mode to verify range and pluck helpers.
Test a simple Angular service by configuring a testing module with TestBed, injecting the service, and verifying add and remove user behaviors.
Test angular api calls by using HttpClientTestingModule to mock HttpClient, verify with HttpTestingController, and flush mock responses for get tags and create tag operations.
Learn how to test http requests in Angular by validating the request method and body, such as posting to /tags with id and name, while prioritizing behavior over data.
Unit test the angular todo service with http client mocks and angular signals, validate default values, and cover get, add, update, remove, toggle, and toggle all.
Master unit testing of a simple Angular component by creating a standalone error message. Test its rendering with default and custom messages using fixture, test bed, and data test id.
Test the standalone pagination component by supplying total, limit, and current page; verify it renders the number of pages, highlights the active link, and emits the page change on click.
Mock dependencies in Angular by creating a mock utils service, providing it via useValue, and keeping tests isolated for a pagination component.
Test real angular components by validating the todo app footer, including visibility, the active count, items left text, and filter interactions (all, active, completed) using data test ids.
Learn shallow testing of the main component in Angular by mocking the Todo child, using override components, and validating visibility, toggling, and rendering of todos.
Unit test a real angular todo component, covering default rendering, toggle and remove actions, editing mode via double-click, in-place text editing with enter, and service calls through a test bed.
Learn to test NgRx reducers in Angular by validating default state and reducer responses to get posts, get post success, and get post failure, using plain-function tests.
Apply what you learned in Angular testing by completing the homework. Test your own project to identify bugs, typos, and mistakes, and strengthen your skills beyond watching videos.
This course is great preparation for any Angular testing that you may have coming up. Quality code testing needs a lot amount of knowledge, but the best way to prepare for it is a lot of practice! In this course you will everything that come from real Angular projects about testing. There are no excersises that nobody asks here. In every video you will learn something useful that you will write every day. We will take a deep dive into the skills, concepts, and techniques that are required to solve each problem.
When you have completed this course you will have mastered Angular testing on a high level and you will also have learned the concepts, skills, and techniques, like testing with Jest and Cypress and using things like mocking and spying that are necessary for you to excel in any testing. You will feel very confident testing any Angular project you will have. On top of all this, you will strengthen your Angular programming skills and Angular fundamentals in overall.
Core topics of the course:
Unit testing concepts
E2E concepts
Testing services
Mocking and spying dependencies
Testing components
Testing NgRx
Full project unit testing on a real project
Cypress testing on a real project